package com.xiaoyu.tool.entity.User;

import com.xiaoyu.tool.entity.common.AbstractEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "user")
@Data
@EqualsAndHashCode(callSuper=false)
public class User extends AbstractEntity {

    @Column
    private String nickName;
    /**
     * 头像
     * */
    @Column
    private String avatar;

    @Column
    private String openId;

    @Column
    private String wxMaOpenId;

    @Column
    private String unionId;

    /**
     * 个人推广二维码
     * */
    @Column
    private String qrCodeUrl;

    /**
     * 合伙人等级
     * */
    @Column
    private Long agentLevelId;

    @Column
    private Boolean isSubscribe = false;

    /**
     * 是否是合伙人
     * */
    @Column
    private Boolean isAgent= false;

    @Column
    private Boolean isFirstLogin;

    /**
     * 粉丝数
     * */
    @Column
    private Integer fansCount = 100;

}
